document.addEventListener("DOMContentLoaded", function(event) { //do work });
document.addEventListener('DOMContentLoaded', (event) => { //the event occurred })